package com.clwl.supervise.superviseapp.mapper.supervise;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.clwl.supervise.superviseapp.entity.supervise.JgLiabilityContent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JgLiabilityContentMapper extends BaseMapper<JgLiabilityContent> {

    /**
     * 按社会评分检查ID和检查标准模版内容id查询社会检查评分信息
     * @param liabilityStandardId 社会检查标准模版id
     * @param contentId 检查内容id
     * @return 对象
     */
    JgLiabilityContent selectByContentStandard(@Param("liabilityStandardId") Long liabilityStandardId,@Param("contentId") Long contentId);

    List<JgLiabilityContent> selectByLiabilityId(@Param("liabilityStandardId") Long liabilityId);

    int batchInsert(@Param("insertList") List<JgLiabilityContent> insertList);

    int batchUpdate(@Param("updateList") List<JgLiabilityContent> updateList);
}
